﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../../../Shared/Enums.h"
#include "../../../Shared/Packet.h"

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;
using namespace Server::MirObjects::Monsters;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class HumanAssassin : public MonsterObject
    {
    public:
        unsigned char AttackRange = 1;
        int AttackDamage = 0;
        bool Summoned = false;
        long long ExplosionTime = 0;

    protected:
        HumanAssassin(MonsterInfo *info);

        void RefreshBase() override;

    public:
        void RefreshAll() override;

        bool Walk(MirDirection dir) override;

    protected:
        bool InAttackRange() override;

        void ProcessAI() override;

        void ProcessSearch() override;

        void ProcessTarget() override;

        void Attack() override;

    public:
        void Spawned() override;

        void Die() override;

    private:
        void ExplosionDie();

    public:
        Packet *GetInfo() override;
    };
}
